package com.ktjy.mapper.user;

import com.ktjy.pojo.Supplier;
import com.ktjy.pojo.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {

    /**
     * 添加
     * @param role
     * @return
     */
    public int add(SysRole role);

    /**
     * 修改
     * @param role
     * @return
     */
    public int update(SysRole role);

    public int delete(Long id);

    public int deleteInfo(Long id);

    public int count(Long id);

    public List<SysRole> selectAll(@Param("roleName")String roleName);

    /**
     * ch04简答
     */
    public int updateRole(SysRole sysRole);

    /**
     *ch04简答分页查询
     */
    public List<SysRole> selectListPage(@Param("pageBegin") Long pageBegin,
                                         @Param("pageSize")Long pageSize,
                                        @Param("roleName")String roleName);
}
